﻿using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Reflection;
using IDAL;
using Model;

namespace BLL
{
    public class TProductType_RETInfo : BaseService<TProductType_RETInfoInfo>
    {
        private static readonly ITProductType_RETInfo dal = DALFactory.DataAccess.CreateTProductType_RETInfo();

        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public bool DeleteItem(TPPIMItem item)
        {
            return dal.DeleteItem(item);
        }

        public IList<TProductType_RETInfoInfo> GetTProductType_RETInfobyID(string productTypeID)
        {
            return dal.GetTProductType_RETInfobyID(productTypeID);
        }

        public IList<TProductType_RETInfoInfo> GetTProductType_RETInfobySN(string productSN)
        {
            return dal.GetTProductType_RETInfobySN(productSN);
        }
    }
}
